package com.platform.usercenter.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;

/**
 * 应用数据权限关系对象 sys_app_permission
 *
 * @author platform
 * @date 2024-10-28
 */
public class SysAppPermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long permissionId;

    /** 应用id */
    @Excel(name = "应用id")
    private Long appSceneId;

    /** 权限编码 */
    @Excel(name = "权限编码")
    private String code;

    /** 权限名称 */
    @Excel(name = "权限名称")
    private String name;

    /** 权限值 */
    @Excel(name = "权限值")
    private String value;

    /** 权限值json格式 */
    @Excel(name = "权限值json格式")
    private String valueInfo;

    /** 是否删除(Y,N) */
    @Excel(name = "是否删除(Y,N)")
    private String isDelete;

    /** 是否必填(Y,N) */
    @Excel(name = "是否必填((Y,N)")
    private String isMust;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public String getIsMust() {
        return isMust;
    }

    public void setIsMust(String isMust) {
        this.isMust = isMust;
    }

    public void setPermissionId(Long permissionId)
    {
        this.permissionId = permissionId;
    }

    public Long getPermissionId()
    {
        return permissionId;
    }
    public void setAppSceneId(Long appSceneId)
    {
        this.appSceneId = appSceneId;
    }

    public Long getAppSceneId()
    {
        return appSceneId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setValue(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }
    public void setValueInfo(String valueInfo)
    {
        this.valueInfo = valueInfo;
    }

    public String getValueInfo()
    {
        return valueInfo;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("permissionId", getPermissionId())
            .append("appSceneId", getAppSceneId())
            .append("code", getCode())
            .append("name", getName())
            .append("value", getValue())
            .append("valueInfo", getValueInfo())
            .append("remark", getRemark())
            .append("isDelete", getIsDelete())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
